home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / apps / database / postgres / postgre3.z / postgre3 / src / lib / H / tcop / tcopdebug.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-08-27  |  1.8 KB  |  65 lines

  1. /* ----------------------------------------------------------------
  2.  *      FILE
  3.  *         tcopdebug.h
  4.  *     
  5.  *      DESCRIPTION
  6.  *         #defines governing debugging behaviour in the traffic cop
  7.  *
  8.  *    $Header: /private/postgres/src/lib/H/tcop/RCS/tcopdebug.h,v 1.3 1991/10/08 01:11:52 hong Exp $
  9.  * ----------------------------------------------------------------
  10.  */
  11.  
  12. #ifndef TcopDebugIncluded
  13. #define TcopDebugIncluded
  14.  
  15. /* ----------------------------------------------------------------
  16.  *    debugging defines.
  17.  *
  18.  *    If you want certain debugging behaviour, then #define
  19.  *    the variable to 1, else #undef it. -cim 10/26/89
  20.  * ----------------------------------------------------------------
  21.  */
  22.  
  23. /* ----------------
  24.  *    TCOP_SLAVESYNCDEBUG is a #define which causes the
  25.  *    traffic cop to print slave backend synchronization
  26.  *    messages.
  27.  * ----------------
  28.  */
  29. #undef TCOP_SLAVESYNCDEBUG
  30.  
  31. /* ----------------
  32.  *    TCOP_SHOWSTATS controls whether or not buffer and
  33.  *    access method statistics are shown for each query.  -cim 2/9/89
  34.  * ----------------
  35.  */
  36. #undef TCOP_SHOWSTATS
  37.  
  38. /* ----------------
  39.  *    TCOP_DONTUSENEWLINE controls the default setting of
  40.  *    the UseNewLine variable in postgres.c
  41.  * ----------------
  42.  */
  43. #undef TCOP_DONTUSENEWLINE
  44.  
  45. /* ----------------------------------------------------------------
  46.  *    #defines controlled by above definitions
  47.  * ----------------------------------------------------------------
  48.  */
  49.  
  50. /* ----------------
  51.  *    slave synchronization debugging defines
  52.  * ----------------
  53.  */
  54. #ifdef TCOP_SLAVESYNCDEBUG
  55. #define SLAVE_elog(l, s)        elog(l, s)
  56. #define SLAVE1_elog(l, s, a)        elog(l, s, a)
  57. #define SLAVE2_elog(l, s, a, b)        elog(l, s, a, b)
  58. #else
  59. #define SLAVE_elog(l, s)    
  60. #define SLAVE1_elog(l, s, a)    
  61. #define SLAVE2_elog(l, s, a, b)
  62. #endif TCOP_SLAVESYNCDEBUG
  63.  
  64. #endif  TcopDebugIncluded
  65.